package com.example.myloginapplication.slice;

import com.example.myloginapplication.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Text;

public class DetailAbilitySlice extends AbilitySlice {
    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        setUIContent(ResourceTable.Layout_ability_detail);

        // 获取参数
        String itemId = (String)intent.getParams().getParam("itemId");
        // 将参数显示到文本中
//        Text text = (Text) findComponentById(ResourceTable.Id_item_detail_price_text);
//        text.setText(itemId);
    }
}
